<%@taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<%@page import="models.RatingBest"%>
<%@page import="utils.UsersInfo"%>
<%@ page import="controllers.CommonConnect"%>
<%@page import="models.RatingRegion"%>
<%@ page import="controllers.SolutionConnect" %>
<%@ page import="controllers.RecommendConnect" %>
<%@ page import="models.Favourite" %>
<%@ page import="java.util.List, java.util.HashMap" %>
<%@ page import = "java.util.Date, java.text.SimpleDateFormat, java.text.ParseException" %>
<%@ page import="com.google.appengine.api.blobstore.BlobInfo, com.google.appengine.api.blobstore.BlobInfoFactory, com.google.appengine.api.blobstore.BlobKey" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService, com.google.appengine.api.blobstore.BlobstoreServiceFactory, com.google.appengine.api.datastore.DatastoreServiceFactory" %>  
<%@ page import="com.googlecode.objectify.Objectify, com.googlecode.objectify.ObjectifyService, com.googlecode.objectify.Query" %>


<%
	CommonConnect NOM = new CommonConnect();
	List<HashMap<String,Object>> rsArea = NOM.GetArea();
	List<HashMap<String,Object>> rsCustomerrsArea = NOM.getCustomer();
	List<HashMap<String,Object>> rsSite = NOM.GetLocation();
	String ValuesName ="";
	int i =0;
	boolean FlgSeledted = false;
    
    
    String sSolID = (String) request.getAttribute("sol_id");
    if ( sSolID == null ) sSolID =  request.getParameter("sol_id");     
    if ( sSolID == null )
        response.sendRedirect("/home.jsp"); 

    Long SolID = Long.parseLong( sSolID );
    boolean hasAdminRole = (Boolean) pageContext.getAttribute("isADM", PageContext.PAGE_SCOPE);
    boolean hasMPSRole = (Boolean) pageContext.getAttribute("isMPS", PageContext.PAGE_SCOPE);
    boolean hasNOMRole = (Boolean) pageContext.getAttribute("isNOM", PageContext.PAGE_SCOPE);
    boolean hasExpertRole = (Boolean) pageContext.getAttribute("isEXP", PageContext.PAGE_SCOPE);
    boolean hasExecuteRole = (Boolean) pageContext.getAttribute("isEXE", PageContext.PAGE_SCOPE);
    boolean hasMORRole = (Boolean) pageContext.getAttribute("isMOR", PageContext.PAGE_SCOPE);
    boolean hasSGMRole = (Boolean) pageContext.getAttribute("isSGM", PageContext.PAGE_SCOPE);
    
    String useremail = (String) pageContext.getAttribute("USER_EMAILID", PageContext.PAGE_SCOPE);
    SolutionConnect SOL = new SolutionConnect();
    List<HashMap<String,Object>> rs = SOL.getQuery("solID",SolID);
    if ( rs == null )
        response.sendRedirect("/home.jsp");     
    

    //Extract all the values from the list
    String  Title = (String) rs.get(0).get("Title");
    SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");    
    String dtImplemented = dateFormat.format((Date) rs.get(0).get("dtImplemented"));    
	
    Date    dtShared = (Date) rs.get(0).get("dtShared");
    String  teamLead = (String) rs.get(0).get("teamLead");
    String  teamMembers = (String) rs.get(0).get("teamMembers");
    String  otherTeamMembers = (String) rs.get(0).get("otherTeamMembers");
    String  Customer = (String) rs.get(0).get("Customer");
    String  Location = (String) rs.get(0).get("Location");
    String  processArea = (String) rs.get(0).get("processArea");
    String  solType = (String) rs.get(0).get("solType");
    String  Status = (String) rs.get(0).get("Status");
    BlobKey teamPicKey = (BlobKey) rs.get(0).get("teamPicKey");
    String teamPicKeyFileName = "";
    long teamPicKeySize = 0;

    if( teamPicKey != null)
    {
        final BlobInfo blobInfo1 = new BlobInfoFactory().loadBlobInfo(teamPicKey);
        teamPicKeyFileName = blobInfo1.getFilename();
        teamPicKeySize = blobInfo1.getSize();
    }
    
    String  S1 = (String) rs.get(0).get("S1");
    String  S2 = (String) rs.get(0).get("S2");
    String  S3 = (String) rs.get(0).get("S3");
    String  S4 = (String) rs.get(0).get("S4");
    String  S5 = (String) rs.get(0).get("S5");
    String  S6 = (String) rs.get(0).get("S6");
    String  achievedType = (String) rs.get(0).get("achievedType");
    String  achievedTypeDesc = (String) rs.get(0).get("achievedTypeDesc");
    String  achievedValue = (String) rs.get(0).get("achievedValue");
    String  achievedUnits = (String) rs.get(0).get("achievedUnits");
    float   hardSavings = (Float) rs.get(0).get("hardSavings");
    float   costAvoidance = (Float) rs.get(0).get("costAvoidance");
    float   oppurtunityCost = (Float) rs.get(0).get("oppurtunityCost");
    float   annProdSavings = (Float) rs.get(0).get("annProdSavings");
    float   impDays = (Float) rs.get(0).get("impDays");
    
    
    boolean isbestOfRegion = (Boolean) rs.get(0).get("bestOfRegion");
    boolean isbestOfBest = (Boolean) rs.get(0).get("bestOfBest");
    
    boolean ishasHardSavings =  (Boolean) rs.get(0).get("hasHardSavings");
    boolean ishasCostAvoidance=  (Boolean) rs.get(0).get("hasCostAvoidance");
    boolean ishasOppurtunityCost=  (Boolean) rs.get(0).get("hasOppurtunityCost");
    
    
    
    BlobKey attachKey = (BlobKey) rs.get(0).get("attachKey");
    String attachKeyFileName = "";
    long attachKeySize = 0;

    if( attachKey!= null )
    {
        final BlobInfo blobInfo = new BlobInfoFactory().loadBlobInfo(attachKey);
        attachKeyFileName = blobInfo.getFilename();
        attachKeySize = blobInfo.getSize();
    }
    
    Status = (String) rs.get(0).get("Status");
    String  submittedBY = (String) rs.get(0).get("submittedBY");
    Date    submittedON = (Date) rs.get(0).get("submittedON");
    String  modifiedBY = (String) rs.get(0).get("modifiedBY");
    Date    modifiedON = (Date) rs.get(0).get("modifiedON");
    boolean mpsCandidate = (Boolean) rs.get(0).get("mpsCandidate");
    boolean nominateSolution = (Boolean) rs.get(0).get("nominateSolution");
    boolean isNominated = nominateSolution;
    boolean isMPS = mpsCandidate;
    boolean canEdit = false;     
    if ( submittedBY.equalsIgnoreCase(useremail) )
    {
        canEdit = true;
    }
    
    boolean isDraft = false;
    if ( Status.equalsIgnoreCase("Draft") )
        isDraft = true;
    
    //Calculating for one solution
    RecommendConnect REC = new RecommendConnect();
    List<HashMap<String,Object>> rcdrs = REC.getQuery("solID", SolID);

    boolean isFavourite = false;
    Objectify ofy = ObjectifyService.begin();
    Query<Favourite> q = ofy.query(Favourite.class).filter("solID", SolID).filter("favouriteOf", useremail);
    for ( Favourite f : q.fetch() ) {                   
        isFavourite = true;
        break;
    }
    
    String strBestofRegionUser = "";
    if ( isbestOfRegion ){      
        Query<RatingRegion> qq = ofy.query(RatingRegion.class).filter("solID", SolID).filter("isActive", true);
        for ( RatingRegion f : qq.fetch() ) {                   
            strBestofRegionUser = UsersInfo.getFullName(f.getRatedBY());
            break;
        }       
    }
    
    String strBestofBestUser = "";
    if ( isbestOfBest ){        
        Query<RatingBest> qqq = ofy.query(RatingBest.class).filter("solID", SolID).filter("isActive", true);
        for ( RatingBest f : qqq.fetch() ) {                    
            strBestofBestUser = UsersInfo.getFullName(f.getRatedBY());
            break;
        }       
    }
    
    if ( isDraft ){
        isNominated = isMPS = isFavourite = isbestOfRegion = isbestOfBest = false;
    }
%>

<SCRIPT LANGUAGE="JavaScript" SRC="/js/jquery-1.3.2.min.js"  TYPE='text/javascript'></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="/js/jquery.cluetip.js"  TYPE='text/javascript'></SCRIPT>

<!-- </td> <td valign="top"> -->
<!-- content -->
<!--<a id="mainContent" name="mainContent"/>-->
<div id="lotusContent">
<!--<h1>Savvy Solutions</h1>
<div class="lotusDetails">Sharing successful solutions to drive efficiency, excellence and a competetive edge for Celestica</div>-->
<!-- View selector -->
<div class="lotusActionBar lotusBtnContainer">
<!-- Buttons -->

<% if (Status.equalsIgnoreCase("Draft")) {%>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:Submitsavvy()"><b>Share Solution</b></a>
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:savesavvy()"><b>Save Solution</b></a>
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:cancelsavvy()"><b>Close</b></a>
	</span>
<%}else { %>

	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:Submitsavvy()"><b>Share Solution</b></a>
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:cancelsavvy()"><b>Close</b></a>
	</span>
	</div>

	<div class="lotusActionBar lotusBtnContainer">
	<span class="lotusBtn GMPicklotusBtnAction lotusLeft">
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="#" id="showdialog"><b>Request More Information</b></a>
	</span>
	</div>
	
<%} %> 
   
<table class="bestofbest"  border="1" width="100%">
<tr valign="top">
<td  class="x" width="20%" rowspan="5"><p>
<a style = "color: #A2A1A6; font-weight:bold"; href="#" rel='/modules/default/expert-info-display.jsp?sol_id=<%=sSolID%>' id="sticky"  title="Experts Recommended"><%=rcdrs.size()%>  <b><font align="top">Expert(s)Recommend</font> </a></td>
</tr></table>

<div class="lotusActionBar lotusBtnContainer">
</div>
<table class="bestofbest"  border="1" width="100%">
<tr valign="top"><td  class="x" width="30%" rowspan="7"><p>
<td  class="xy" width="17%" rowspan="7"><p>
</tr>
</table>
<input type="hidden" name="editKey" value=<%= request.getParameter("sol_id") %> >
<!--<form id="frmSavvySolution">-->
<input type="hidden" name="valFieldList" value="cmbCustomer,Customer,cmbProcessarea,Process Area,cmbSolutiontype,Solution Type,cmbSite,Location,dtDate,Implementation Date,namSolTL,Solution Team Lead,namSolTM,Team Members,txtTheme,Title,taProbDef,Problem Definition,taProbAnalysis,Problem Analysis,taProbRootCause,Problem Root Cause,taImpSol,Implement Solutions,taEvalRes,Evaluate Results,chkBenefits,Check Benifits,taPrevRec,Preventive Reoccurence,taImpTime,Implementation Time" />
<fieldset>
<legend>Edit Solution Form</legend>
<br>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
<tr>
            <td width="45%" class="h-fieldHeaderEdit-bgtext">&nbsp;</td>
            <td valign="top" align="right" width="55%" class="h-fieldHeaderEdit-bgtext" colspan="3">&nbsp;&nbsp;&nbsp;
</td>
        
        </tr>
    
        <tr>
            <td align="right" width="38%" class="h-fieldHeaderEdit-bgtext" colspan="3"><div align="right">&nbsp;&nbsp;&nbsp;<span class="frm-label">Status: <font color="#FFB208"><%= Status %></font></span></div></td>
        
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
</table>
<!--  <script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/main.js" type="text/javascript"></script>-->

<style>
pre{
    display:block;
    font:100% "Courier New", Courier, monospace;
    padding:10px;
    border:1px solid #bae2f0;
    background:#e3f4f9; 
    margin:.5em 0;
    overflow:auto;
    width:800px;
}
img{border:none;}
#screenshot{
    position:absolute;
    border:1px solid #ccc;
    background:#333;
    padding:1px;
    display:none;
    color:#fff;
    }
/*  */
</style>


<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>     
        <tr>
            <td width="10%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Title:  </span><br>
            <input readonly type="hidden" name="countdown" size="3" value="50" class="h-fieldEdit-text">
            </td>
            <td width="48%" class="h-fieldEdit-text" valign="top">
                <input name="txtTheme" value="<%= Title %>"  Size=60 id="txtTheme">  
           </td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>

        <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Customer: </span></td>
            <td width="20%" class="h-fieldEdit-text" >
<input name="%%Surrogate_cmbCustomer" type="hidden" value="1">
<select name="cmbCustomer" id="customer">
<option  >--Select Customer--</option>
                    <%
                        while ( i < rsCustomerrsArea.size() ) {
                        	ValuesName = (String) rsCustomerrsArea.get(i).get("CustName");
                            if (ValuesName.equalsIgnoreCase(Customer))
                            {
                                FlgSeledted = true;
                            }
                    %>
                    <%if (FlgSeledted){ FlgSeledted=false; %>
                           <option selected="'selected"  value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%}else {%>
                          <option value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%
                    }
                            i++;
                        }
                    ValuesName = "";
                    %>
</select>
</td>
            <td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Date Implemented: </span></td>
            <td width="30%" class="h-fieldEdit-text" >
<input name="dtDate" value=<%=  dtImplemented  %> onfocus="this.blur();">   &nbsp;&nbsp;
            <A 
                        onmouseover="window.status='Click here to select date from calender';return true;" 
onclick='showCalendar(this, document.forms[0].dtDate, "mm/dd/yyyy","en",1)'
                        onmouseout="window.status='';return true;" href="javascript:;"><img src="/img/bx.gif" width="16" height="15" alt="Select Date" border="0"></a>
            </td>
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Location: </span> </td>
            <td width="20%" class="h-fieldEdit-text" >
<input name="%%Surrogate_cmbSite" type="hidden" value="1">
<select name="cmbSite" id="customer_2_1_1">
<option  >--Select Location--</option>
                    <%
                        i = 0;
                        while ( i < rsSite.size() ) {
                        	ValuesName = (String) rsSite.get(i).get("LocationName");
                            
                            if (ValuesName.equalsIgnoreCase(Location))
                            {
                                FlgSeledted = true;
                            }
                    %>
                    <%if (FlgSeledted){ FlgSeledted=false; %>
                           <option selected="'selected"  value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%}else {%>
                          <option value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%
                    }
                            i++;
                        }
                        ValuesName = "";
                    %>

</select>
 </td>
            <td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="Red10"> </span><span class="frm-label">Date Shared: </span> </td>
            <td width="30%" class="h-fieldEdit-text" >
            
               <%= dtShared  %> &nbsp;&nbsp;
            </td>
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
        <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Process Area: </td>
        <td width="20%" class="h-fieldEdit-text">
<input name="%%Surrogate_cmbProcessarea" type="hidden" value="1">
<select name="cmbProcessarea" id="customer_2">
<option  >--Select Process Area--</option>
                    <%
                        i = 0;
                        while ( i < rsArea.size() ) {
                        	ValuesName = (String) rsArea.get(i).get("AreaName");
                            if (ValuesName.equalsIgnoreCase(processArea))
                            {
                                FlgSeledted = true;
                            }
                    %>
                    <%if (FlgSeledted){ FlgSeledted=false; %>
                           <option selected="'selected"  value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%}else {%>
                          <option value="<%=ValuesName%>"> <%=ValuesName%></option>
                    <%
                    }
                            i++;
                        }
                        ValuesName = "";
                    %>
</select>
 </td>  
        <td width="20%"class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Solution Team Lead:</span></td>
        <td width="30%" class="h-fieldEdit-text" valign="top">
<input name="namSolTL" value= <%= teamLead %> size=30 onfocus="this.blur();"> 
&nbsp;<A HREF="javascript:getSingleName('namSolTL', '')"><img src=/img/ic2.gif width="17" height="18" border="0">
        </td>   
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
        <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Solution Type: </td>
        <td width="20%" class="h-fieldEdit-text">
<input name="%%Surrogate_cmbSolutiontype" type="hidden" value="1">

		
		<% if (solType.toString().equalsIgnoreCase("Kaizen")){ %>
				<select name="cmbSolutiontype" id="customer_2_1">
				<option>--Select Solution Type--</option>
				<option selected="selected" >Kaizen</option>
				<option>Six Sigma</option>
				<option>Other</option>
				</select>
				
		<% }else if (solType.toString().equalsIgnoreCase("Six Sigma")){%>
		        <select name="cmbSolutiontype" id="customer_2_1">
		        <option>--Select Solution Type--</option>
		        <option  >Kaizen</option>
		        <option selected="selected" >Six Sigma</option>
		        <option>Other</option>
		        </select>
		<% }else if (solType.toString().equalsIgnoreCase("Other")){%>
		        <select name="cmbSolutiontype" id="customer_2_1">
		        <option>--Select Solution Type--</option>
		        <option  >Kaizen</option>
		        <option  >Six Sigma</option>
		        <option selected="selected" >Other</option>
		        </select>
		<% }else {%>
		        <select name="cmbSolutiontype" id="customer_2_1">
		        <option selected="selected"  >--Select Solution Type--</option>
		        <option  >Kaizen</option>
		        <option  >Six Sigma</option>
		        <option >Other</option>
		        </select> 
		<%} %>








</td>  
        <td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="Red10">*</span><span class="frm-label">Team Members:</span></td>
        <td width="30%" class="h-fieldEdit-text" valign="top"> 
<textarea name="namSolTM" rows="5" cols="30"   onfocus="this.blur();" id="soltm" class="myNonBasicEditor"><%=teamMembers.trim() %></textarea>

         &nbsp;<A HREF="javascript:GetMultiNames('namSolTM', '')"><img src=/img/ic2.gif width="17" height="18" border="0">  
         </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
    <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
                    
        <tr>
            <td width ="50%" class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        <td width="30%" class="h-fieldHeaderEdit-bgtext"><span class="Red10"></span> <span class="frm-label">Other Team Members:</span></td>
        <td width="30%" class="h-fieldEdit-text" valign="top"> 
<textarea name="namOthTM" rows="5" cols="30" id="soltm_1" class="myNonBasicEditor"><%= otherTeamMembers.trim() %></textarea>

        </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
<!-- upload photo-->
<tr>
                
            <td width="40%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10"></span><span class="frm-label">Optional: Upload a team photo:</span></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>       
<tr class="h-edit-bg" valign="top">
            <td width="40%" class="h-fieldEdit-text" valign="top">
                <% if (teamPicKey != null && !teamPicKey.getKeyString().equals("")) { %>
                    &nbsp; <img  src='/blobserve?blob-key=<% out.println( teamPicKey.getKeyString() ); %>' width='100px' height='100px' id="photoimg" />
                <%} else { %>
                        &nbsp;<img  src="/img/Team1.gif" width='100px' height='100px'  id="photoimg"/>
                <% } %> 
            </td>
            
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
               Upload Photo <input type="file" name="txtupload_teampic" > 
            </td>
        </tr>
<!-- end upload photo-->
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Step 1:  Define and measure the problem</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step1.gif"><font color=#0000cc>Help</font></a></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="100%" class="h-fieldEdit-text">
                
<!--<textarea name="taProbDef" Rows=22 cols=75></textarea>-->
       <FCK:editor instanceName="taProbDef" value="<%=S1 %>"  ></FCK:editor>   
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
<span class="Red10">*</span><span class="frm-label">Step 2:  Analyze the data</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step2.gif"><font color=#0000cc>Help</font></a></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                
                   <FCK:editor instanceName="taProbAnalysis" value="<%= S2 %>" ></FCK:editor>   


<!--  <textarea name="taProbAnalysis" Rows=22 cols=75>
</textarea>-->

            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Step 3:  Identify Root Cause(s)</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step3.gif"><font color=#0000cc>Help</font></a><br></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                
                <FCK:editor instanceName="taProbRootCause" value="<%= S3 %>" ></FCK:editor>   
<!--  <textarea name="taProbRootCause" id="prorc" Rows=22 cols=75>
</textarea>-->

            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Step 4:  Implement Solution</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step4.gif"><font color=#0000cc>Help</font></a></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <FCK:editor instanceName="taImpSol" value="<%= S4 %>"  ></FCK:editor>         
<!--  <textarea name="taImpSol" id="impsol" Rows=22 cols=75>
</textarea>-->

            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Step 5:  Evaluate Results</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step5.gif"><font color=#0000cc>Help</font></a></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
 
                 <FCK:editor instanceName="taEvalRes" value="<%= S5 %>" ></FCK:editor>   
            </td>
            <td>
      
            </td>
            <td class="h-edit-bg" align="right" valign="top">

            </td>
            
        </tr>

    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Achieved Benefit:</span>
<span><br><br>Note: Achieved Benefit = previous state - new state</span>
</td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <table class="sampletd">
                <tr>
                <td>
                
<input name="%%Surrogate_chkBenefits" type="hidden" value="1">


<% if ( achievedTypeDesc.equalsIgnoreCase("Safety") ) { %>
 <label> <input type="radio" name="chkBenefits" value="1" checked="checked" onclick="hideApprovers(this);">Safety</label>
<br>
<% } else { %>
<label> <input type="radio" name="chkBenefits" value="1" onclick="hideApprovers(this);">Safety</label>
<br>
<% } %>

<% if ( achievedTypeDesc.equalsIgnoreCase("Quality")) { %>
<label><input type="radio" name="chkBenefits" value="2" checked="checked" onclick="hideApprovers(this);">Quality</label>
<br>
<% } else { %>
<label><input type="radio" name="chkBenefits" value="2" onclick="hideApprovers(this);">Quality</label>
<br>
<% } %>

<% if ( achievedTypeDesc.equalsIgnoreCase("Order Lead Time") ) { %>
<label><input type="radio" name="chkBenefits" value="3" checked="checked" onclick="hideApprovers(this);">Order Lead Time</label>
<br>

<% } else { %>
<label><input type="radio" name="chkBenefits" value="3" onclick="hideApprovers(this);">Order Lead Time</label>
<br>
<% } %>

<% if (achievedTypeDesc.equalsIgnoreCase("Customer satisfaction") ) { %>
<label><input type="radio" name="chkBenefits" value="4" checked="checked" onclick="hideApprovers(this);">Customer satisfaction</label>
<br>
<% } else { %>
<label><input type="radio" name="chkBenefits" value="4" onclick="hideApprovers(this);">Customer satisfaction</label>
<br>
<% } %>

<% if ( achievedTypeDesc.equalsIgnoreCase("Employee engagement") ) { %>
<label><input type="radio" name="chkBenefits" value="5" checked="checked"  onclick="hideApprovers(this);">Employee engagement</label>
<% } else { %>
<label><input type="radio" name="chkBenefits" value="5" onclick="hideApprovers(this);">Employee engagement</label>
<% } %>
                </td>
                <td>
<table class="sampletd">
<tr><td>&nbsp;</td></tr>
                <tr>
                <td>                
            <div id="chkquality" > 
 
 



<% if ( achievedTypeDesc.equalsIgnoreCase("Quality") ) { %>
	<input name="taQuality" value=<%= achievedValue %> onblur="if(!IsNumber(this.value))
	{
	alert(&quot;Non numeric is not allowed&quot;)
	this.focus()
	}
	else
	{
	
	}" id="taQuality">
  
  
<% } else {%>
    <input name="taQuality" value=""  onblur="if(!IsNumber(this.value))
    {
    alert(&quot;Non numeric is not allowed&quot;)
    this.focus()
    }
    else
    {
    
    }" id="taQuality">
    
<% }  %>     


        





&nbsp;&nbsp;
<input name="%%Surrogate_cmbQualityOptions" type="hidden" value="1">

<%if (achievedUnits.toString().equalsIgnoreCase("DPU")){%>
    <select name="cmbQualityOptions"   id="customer_1">
        <option value="0" >--Select--</option>
        <option value="DPU" selected="selected" >DPU </option>
        <option value="DPPM" >DPPM  </option>
        <option value="%RTY" >%RTY  </option>
    </select>
<% }else if (achievedUnits.toString().equalsIgnoreCase("DPPM")){%>
    <select name="cmbQualityOptions"   id="customer_1">
        <option value="0" >--Select--</option>
        <option value="DPU"  >DPU </option>
        <option value="DPPM" selected="selected" >DPPM  </option>
        <option value="%RTY" >%RTY  </option>
    </select>
<% }else if (achievedUnits.toString().equalsIgnoreCase("%RTY")){%>
    <select name="cmbQualityOptions"   id="customer_1">
        <option value="0" >--Select--</option>
        <option value="DPU"  >DPU </option>
        <option value="DPPM" >DPPM  </option>
        <option value="%RTY" selected="selected" >%RTY  </option>
    </select>
<% }else{%>
    <select name="cmbQualityOptions"   id="customer_1">
        <option value="0" selected="selected" >--Select--</option>
        <option value="DPU"  >DPU </option>
        <option value="DPPM" >DPPM  </option>
        <option value="%RTY" >%RTY  </option>
    </select>
<% } %>





</div></td></tr>
<tr><td>                
            <div id="chkdays">
            
            
<% if ( achievedTypeDesc.equalsIgnoreCase("Order Lead Time") ) { %>

<input name="taDays" value=<%= achievedValue %>  onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taDays">

<% } else {%>

<input name="taDays" value="" onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taDays">


<%} %>        
&nbsp;&nbsp;(In Days)</div></td></tr>
</table>
                </td>
                </tr>
                </table>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Financial Benefit:</span>
</td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <table class="sampletd">
                <tr>
                <td>
                
<input name="%%Surrogate_FinanBenefits" type="hidden" value="1">



<%  if(!ishasHardSavings){ %>
   <label><input type="checkbox" name="FinanBenefits" value="1" onclick="hideFinanApprovers(this);" id="Finance">Hard Savings</label><br>
<%}else{ %>
   <label><input type="checkbox" name="FinanBenefits" value="1" checked="checked" onclick="hideFinanApprovers(this);" id="Finance">Hard Savings</label><br>
<%} %>

<%  if(!ishasCostAvoidance){ %>
  <label><input type="checkbox" name="FinanBenefits" value="2" onclick="hideFinanApprovers(this);" id="Finance">Cost Avoidance</label><br>
<%}else{ %>
   <label><input type="checkbox" name="FinanBenefits" value="2" checked="checked" onclick="hideFinanApprovers(this);" id="Finance">Cost Avoidance</label><br>
<%} %>


<%  if(!ishasOppurtunityCost){ %>
<label><input type="checkbox" name="FinanBenefits" value="3" onclick="hideFinanApprovers(this);" id="Finance">Opportunity Cost</label>
<%}else{ %>
<label><input type="checkbox" name="FinanBenefits" value="3"   checked="checked"  onclick="hideFinanApprovers(this);" id="Finance">Opportunity Cost</label>
<%} %>










                </td>
                <td>
<table class="sampletd">
                <tr>
                <td>                
            <div id="chkhardsaves" > 
<input name="HardSavings" value= <%= hardSavings %>  rows=1 onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taQuality_1">&nbsp;&nbsp;($USD)</div></td></tr>
<tr><td>                
            <div id="chkcostavoid">
<input name="CostAvoid" value=<%= costAvoidance %> rows=1 onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taDays_1">&nbsp;&nbsp;($USD)</div></td></tr>
<tr><td>                    
            <div id="chkopporcost">
<input name="OpporCost" value=<%= oppurtunityCost %>  rows=1 onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taProdSav_1">&nbsp;&nbsp;($USD)</div></td></tr>
</table>
                </td>
                </tr>
                </table>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody><tr><td class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label" align="center">Total Annual Production Savings:  <%= annProdSavings %> &nbsp;($USD)</span></td></tr>
</tbody></table><br>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody><tr><td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">

<script language="JavaScript" type="text/javascript">
<!-- 
function _dSectionExpand(sec) {
     document.getElementById("cSec"+sec).style.display = "none";
     document.getElementById("xSec"+sec).style.display = "block";
}
function _dSectionCollapse(sec) {
     document.getElementById("xSec"+sec).style.display = "none";
     document.getElementById("cSec"+sec).style.display = "block";
}
// -->
</script>
<div id="cSec1"><a href="javascript:_dSectionExpand('1')" onclick="return _dSectionExpand('1');"><img src="/img/expand.gif" border="0" alt="Show details for Definition of the categories:"></a><a onclick="return _dSectionExpand('1');"><b><u><font face="Arial">Definition of the categories:</font></u></b></a></div><div id="xSec1"><a href="javascript:_dSectionCollapse('1')" onclick="return _dSectionCollapse('1');"><img src="/img/collapse.gif" border="0" alt="Hide details for Definition of the categories:"></a><a onclick="return _dSectionCollapse('1');"></a><br>
<b><u><font face="Arial">Definition of the categories:</font></u></b><br>
<br>
<b><font face="Arial">1) Hard savings</font></b><font face="Arial"> (Scrap reduction, IDM Usage Reduction, Head Count reduction, Indirect Production Reduction)</font><br>
<b><font face="Arial">2) Cost avoidance</font></b><font face="Arial"> (Quality Improvement, Expenses prevention, Capital Spending Avoidance)</font><br>
<b><font face="Arial">3) Opportunity costs</font></b><font face="Arial"> (Process Cycle time reduction, Set-up Time Reduction, System/productivity Improvement)</font></div>
<script language="JavaScript" type="text/javascript">
<!-- 
_dSectionCollapse('1');
// -->
</script>


</span>
</td></tr></tbody></table><br>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>

        </tr>

        <tr>

            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="steptxt"></span><span class="frm-label">How many days did it take to implement this solution into the factory?</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>

        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>


        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                
<input name="taImpTime" value=   <%= impDays  %> Rows=1 cols=5 onblur="if(!IsNumber(this.value))
{
alert(&quot;Non numeric is not allowed&quot;)
this.focus()
}
else
{

}" id="taImpTime">
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>

        </tr>

        <tr>

            <td width="97%" class="h-fieldHeaderEdit-bgtext">

            <span class="Red10">*</span><span class="frm-label">Step 6:  Prevent Recurrence</span><br>&nbsp;<a href="#" class="screenshot" rel="/img/Step6.gif"><font color=#0000cc>Help</font></a></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>

        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>


        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
   <FCK:editor instanceName="taPrevRec" value="<%= S6 %>" ></FCK:editor>                  


<br>


            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>

    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>

        </tr>

        <tr>

            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Optional: Upload an Attachment:<br>
</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>

        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>


        <tr class="h-edit-bg">
            <td class="h-fieldEdit-text">
                  <input type="file" name="txtupload_attachment">
                  
                    <% if ( attachKey!= null && !attachKey.equals("") ) { %>
                        <a href="/blobserve?blob-key=<%=attachKey.getKeyString()%>" target=_blank><%=attachKeyFileName%></a> - <%=attachKeySize%>(Kbytes)
                    <%} else { %>
                    <%} %>
                    
                    
            </td>
            <td align="left" colspan="2"  >
             
            </td>
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
             
            </td>
        </tr>

    </tbody>
</table>



</fieldset>
<div>

<div class="lotusActionBar lotusBtnContainer">

<% if (Status.equalsIgnoreCase("Draft")) {%>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:Submitsavvy()"><b>Share Solution</b></a>
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:savesavvy()"><b>Save Solution</b></a>
	</span>
	<span class="lotusBtn lotusBtnAction lotusLeft">
	<a href="javascript:cancelsavvy()"><b>Close</b></a>
	</span>
<%}else { %>

		<span class="lotusBtn lotusBtnAction lotusLeft">
		<a href="javascript:Submitsavvy()"><b>Share Solution</b></a>
		</span>
		<span class="lotusBtn lotusBtnAction lotusLeft">
		<a href="javascript:cancelsavvy()"><b>Close</b></a>
		</span>
	</div>

	<div class="lotusActionBar lotusBtnContainer">
		<span class="lotusBtn GMPicklotusBtnAction lotusLeft">
		</span>
		<span class="lotusBtn lotusBtnAction lotusLeft">
		<a href="#" id="showdialogbottom"><b>Request More Information</b></a>
		</span>
	</div>

<div style="display: none;" id="postquestion" title="Post Question"></div>

<div style="display: none;" id="ExpertRecommendation" title="Expert Recommendation"></div>
<div id="recomm" style="display: none;"></div>

<%} %>



<br>
<br>
<fieldset>
<legend>Adoption and Continuous Improvement</legend>
 
<div id="currdocunid" style="display:none">8AB00891A7FDDD4A4825766D002A23AF</div>
<p><div id="idContent"></div>
<br>
</fieldset>


<br>
<div id="idQResponses"></div>

</div>
<!--End of Lotus Content-->
</div>
<!--End of Lotus Main-->
</div>


<!-- Footer gets moved to within Frame div in weblog.vm so closing tags need to go in weblog.vm - MTodd November 1 2007 </body> </html> -->
</div>

</div><br>
<br>
<br>
<br>


<input name="hasHardSavings" type="hidden" value="False">
<input name="hasCostAvoidance" type="hidden" value="False">
<input name="hasOppurtunityCost" type="hidden" value="False">
<input name="txtsol_id" type="hidden" value="<%=sSolID%>"> 
 
 
<script type="text/javascript"> 
var dbName="global/collaboration/SavvySol.nsf"
var docstate="Submitted"
 
if(true)
{
 
var vurl= "/ajxshowquestionresponse"
var SolID = document.forms[0].txtsol_id.value 
 
//checking whether browser is mozila or Netscape
	if (window.XMLHttpRequest) 
 	{   
//		alert('INSIDE HTTP')
		req = new XMLHttpRequest();
//		alert(req+' - - req - - ')
		//req.overrideMimeType('text/xml');
 
		req.onreadystatechange = processReqChange_lookupQresp;
		req.open("POST", vurl , true);
		req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
		req.send("sol_id=" + SolID);
     		 } 
        //checking whether browser is IE 
 	else if (window.ActiveXObject)
  	{
//    		alert('entered the else of XMLHTTPRequest--- '+ window.ActiveXObject)
		req=new ActiveXObject("Microsoft.XMLHTTP")
		
		 if (req)
	   { 
 
			req.onreadystatechange = processReqChange_lookupQresp;
			req.open("POST", vurl, true);
			req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
			req.send("sol_id=" + SolID);
        }
     }
}
 
 
 
</script>
 
	<link type="text/css" href="/css/jquery/themes/base/ui.all.css" rel="stylesheet" />
 
	<script type="text/javascript" src="/js/jquery/ui/ui.core.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/ui.draggable.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/ui.resizable.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/ui.dialog.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/effects.core.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/ui.accordion.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/effects.highlight.js"></script>
	<script type="text/javascript" src="/js/jquery/external/bgiframe/jquery.bgiframe.js"></script>
	<script type="text/javascript" src="/js/jquery/ui/jquery.livequery.js"></script>

<link type="text/css" href="/css/demos.css" rel="stylesheet" />




<div id="dd"  style="display:none" >
<input type="button" value="Submit-SavvySolution" id="btnSubmitIdeaGenerator" onclick="return _doClick('Shared', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Save-SavvySolution" id="btnSaveIdeaGenerator" onclick="return _doClick('Draft', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Delete-DraftSolution" id="btnDeletesavvysolution" onclick="return _doClick('Draft', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Save-SavvySolution-Admin" id="btnSaveIdeaGeneratoradmin" onclick="return _doClick('Draft', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-Feedback" id="btnSubmitfeedbackGenerator" onclick="return _doClick('Shared', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-FeedbackP" id="btnSubmitfeedbackPGenerator" onclick="return _doClick('Shared', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Post-Feedback" id="btnCommFeedback" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.9DC', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Accept-Manager" id="btnAcceptMgr" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.B04', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Reject Mgr" id="btnRejectMgr" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.C56', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Accept-Expert" id="btnAcceptExpert" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.DA4', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Reject Expert" id="btnRejectExpert" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.EFC', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Edit" id="btnEditdoc" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1054', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add Basket" id="btnAddBasket" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.115E', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove from Basket" id="btnRemoveBasket" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1286', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-Feedback to super user" id="btnSubmitSubmitFeedbacktosuperuser" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.13C0', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add Pick" id="btnAddPick" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1514', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove from Pick" id="btnRemovePick" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.163A', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add MPS" id="btnAddmps" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1770', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove MPS" id="btnRemoveMPS" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.18B4', this, null)"></div>






<br>

<input name="Remote_User" type="hidden" value="(Celestica)">
<input name="txtSigma" type="hidden" value="False">
<input name="KeyVal" type="hidden" value="">
<input name="UnscribeKeyVal" type="hidden" value="">
<input name="HTTP_Cookie" type="hidden" value="__utma=88700297.683723686.1339743676.1343695385.1344299971.31; __utmz=88700297.1339743676.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); redirectto=/home.jsp%3FOpenForm%26login; DomAuthSessId=A01266CD9ECCC77E913FD57318BA559C">
<input name="$V2AttachmentOptions" type="hidden" value="0">
<input name="SolReaders" type="hidden" value=", , [SolManager], (Celestica)">
<input name="soldocid" type="hidden" value="FB41197327E84D1385257A55000F47AE">
<input name="txtCheckbenefits" type="hidden" value="">
<input name="datsubmitted" type="hidden" value="">
<input name="HTTP_Referer" type="hidden" value="">
<input name="Server_Name" type="hidden" value="tortst6.ca-tor.celestica.com">
<input name="textProbDef" type="hidden" value="txtProbDef">
<input name="textPrevRec" type="hidden" value="txtPrevRec">
<input name="SolAuthors" type="hidden" value=", , [SolManager], (Celestica), [OpSiteCoach]">
<input name="curUsername" type="hidden" value="CN=Srinivas Vanamala/OU=SG/OU=Asia/O=Celestica">
<input name="mpscandidate" type="hidden" value="no">
<input name="docUnID" type="hidden" value="FB41197327E84D1385257A55000F47AE">
<input name="lastnum" type="hidden" value="">
<input name="SolRequestor" type="hidden" value="(Celestica)">
<input name="numImplsolutions" type="hidden" value="0">
<input name="totRating" type="hidden" value="0">
<input name="cmbSolRegion" type="hidden" value="">
<input name="cmbSolSiteID" type="hidden" value="">
<input name="Query_String_Decoded" type="hidden" value="OpenForm&amp;login">
<input name="dbName" type="hidden" value="/">
<input name="FieldStatus" type="hidden" value="Draft">
<input name="issuperadmin" type="hidden" value="Yes">
<input name="currdocunid" type="hidden" value="FB41197327E84D1385257A55000F47AE">
<input name="QuickSearch" type="hidden" value="0">
<input name="UserProfileInfo" type="hidden" value="">
<input name="txtProfileUNID" type="hidden" value="">
<input name="seqnum" type="hidden" value="Unassigned">
<input name="txtStatus" type="hidden" value="Draft">
<input name="dtShared" type="hidden" value="08/08/2012">
<input name="taProbDef_1" type="hidden" value="">
<input name="taProbAnalysis_1" type="hidden" value="">
<input name="taProbRootCause_1" type="hidden" value="">
<input name="taImpSol_1" type="hidden" value="">
<input name="taEvalRes_1" type="hidden" value="">
<input name="taProdSav" type="hidden" value="">
<input name="taMatSav" type="hidden" value="">
<input name="TotAnnualProd" type="hidden" value="0">
<input name="taPrevRec_1" type="hidden" value="">